const getters = {
  // app
  loading: state => state.app.loading,
  
  // user
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,
  permissions: state => state.user.permissions,
  
  // permission
  routes: state => state.permission.routes,
  addRoutes: state => state.permission.addRoutes,
  
  // tagsView
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  
  // theme
  currentTheme: state => state.theme.currentTheme,
  availableThemes: state => state.theme.availableThemes
}

export default getters 